import request from '@/utils/request'
const pay_url = process.env.VUE_APP_PAY_API
/**
 * 订单支付信息获取
 * http://192.168.88.247:4999/web/#/52/309
 * @param {Object} data
 * @returns
 */
export function getOrderInfo (data) {
  return request({
    baseURL: pay_url,
    url: '/api/v1/pay',
    method: 'post',
    data
  })
}
/**
 * 订单支付状态检测
 * http://192.168.88.247:4999/web/#/52/308
 * @param {Object} params
 * @returns
 */
export function checkOrderInfo (params) {
  return request({
    baseURL: pay_url,
    url: '/api/v1/check_order',
    method: 'get',
    params
  })
}
